import * as types from './mutation_types';

export default {
  [types.UPDATE_CURRENT_MODULE](state, module = {}) {
    Object.assign(state, {
      currentModule: module,
    });
  },
  [types.UPDATE_ACTIVE_COMMENT](state, comment = {}) {
    Object.assign(state, {
      activeComment: comment,
    });
  },
};
